﻿@{
    ViewBag.Title = "显示/隐藏";
}
<style>
    .tbList {
        border: 1px solid #ddd;
        height: 99.5%;
        border-collapse: collapse;
        margin: 0;
        padding: 0;
        width: 100%;
        border-top-width: 0;
        border-bottom-width: 0;
        border-left-width: 0;
        border-right-width: 0;
    }

        .tbList td, th {
            border: 1px solid #ddd;
            padding: 0 5px;
        }
</style>
<script>
    $(function () {
        $('#enter').click(function () {
            var table = window.top.$("#tabBox") //获取父页面的 选项卡容器
                    .tabs("getSelected") //获取 当前选中的选项卡
                    .children("iframe")[0] //获取 选项卡里的 iframe
                    .contentWindow //获取iframe里的window对象
                    .$("#tbList"); //获取iframe里面页面的 表格组件
                      
            var checklist = $("#tbList [type='checkbox']");
            for (var i = 0; i < checklist.length; i++) {
                if (checklist[i].checked==false) {
                    table.datagrid('hideColumn', checklist[i].value);
                }
                if (checklist[i].checked == true) {
                    table.datagrid('showColumn', checklist[i].value);
                }
            };
            $.globalHelper.closeCommonWindow();
        });
        

    });

</script>

<table id="tbList" class="tbList">
    <tr>
        <td class="tdName">统一编号</td>
        <td><input id="factory_bar_code" type="checkbox" value="factory_bar_code" checked="checked"></td>
        <td class="tdName">设备大类</td>
        <td><input id="factory_Machines_Name" type="checkbox" value="factory_Machines_Name" checked="checked"></td>
    </tr>
    <tr>
        <td class="tdName">二级分类</td>
        <td><input id="Factory_Machines_Kind1" type="checkbox" value="Factory_Machines_Kind1" checked="checked"></td>
        <td class="tdName">三级分类</td>
        <td><input id="Factory_Machines_Kind2" type="checkbox" value="Factory_Machines_Kind2" checked="checked"></td>
    </tr>
    <tr>
        <td class="tdName">设备类型</td>
        <td><input id="Factory_Machines_Kind" type="checkbox" value="Factory_Machines_Kind" checked="checked"></td>
        <td class="tdName">设备型号</td>
        <td><input id="factory_Machines_Type" type="checkbox" value="factory_Machines_Type" checked="checked"></td>
    </tr>
    <tr>
        <td class="tdName">标准规格</td>
        <td><input id="factory_Machines_Size" type="checkbox" value="factory_Machines_Size" checked="checked"></td>
        <td class="tdName">供应商</td>
        <td><input id="Factory_Machines_Supplier" type="checkbox" value="Factory_Machines_Supplier" checked="checked"></td>
    </tr>
    <tr>
        <td class="tdName">功率KW</td>
        <td><input id="factory_Machines_KW" type="checkbox" value="factory_Machines_KW" checked="checked"></td>
        <td class="tdName">投产日期</td>
        <td><input id="factory_Machines_UseDate" type="checkbox" value="factory_Machines_UseDate" checked="checked"></td>
    </tr>
    <tr>
        <td class="tdName">出厂日期</td>
        <td><input id="factory_Machines_OutDate" type="checkbox" value="factory_Machines_OutDate" checked="checked"></td>
        <td class="tdName">入厂日期</td>
        <td><input id="factory_Machines_InDate" type="checkbox" value="factory_Machines_InDate" checked="checked"></td>
    </tr>
    <tr>
        <td class="tdName">投产日期</td>
        <td><input id="factory_Machines_UseDate" type="checkbox" value="factory_Machines_UseDate" checked="checked"></td>
        <td class="tdName">金额</td>
        <td><input id="factory_Machines_Price" type="checkbox" value="factory_Machines_Price" checked="checked"></td>
    </tr>
    <tr>
        <td class="tdName">已提折旧</td>
        <td><input id="factory_depreciation" type="checkbox" value="factory_depreciation" checked="checked"></td>
        <td class="tdName">净值</td>
        <td><input id="factory_networth" type="checkbox" value="factory_networth" checked="checked"></td>
    </tr>
    <tr>
        <td class="tdName">使用单位</td>
        <td><input id="Department" type="checkbox" value="Department" checked="checked"></td>
        <td class="tdName">安装地点</td>
        <td><input id="factory_Machines_installation_site" type="checkbox" value="factory_Machines_installation_site" checked="checked"></td>
    </tr>
    <tr>
        <td class="tdName">性能状态</td>
        <td><input id="Factory_Machines_EquipmentStatus" type="checkbox" value="Factory_Machines_EquipmentStatus" checked="checked"></td>
        <td class="tdName">使用状态</td>
        <td><input id="Factory_Machines_UseState" type="checkbox" value="Factory_Machines_UseState" checked="checked"></td>
    </tr>
    <tr>
        <td class="tdName">操作者</td>
        <td><input id="factory_Machines_UserId" type="checkbox" value="factory_Machines_UserId" checked="checked"></td>
        <td class="tdName">公司名称</td>
        <td><input id="Company" type="checkbox" value="Company" checked="checked"></td>
    </tr>
    <tr>
        <td colspan="4" style="text-align: center; border: 0 solid white; padding-top:7px"><input id="enter" type="submit" value="确定" style="height: 27px; width: 68px;  cursor: pointer" /></td>
    </tr>
</table>
             
                    
                    